Ext.define('iMedproplus.view.admin.structure.StructureWindow', {
    extend: 'Ext.window.Window',
    requires: [
    'iMedproplus.view.admin.structure.TreePanel',
    'iMedproplus.view.admin.structure.UnitPanelGrid'
    ],
    alias: 'widget.adminstructurewindow',
    height: 436,
    width: 773,
    title: 'Strukutra',
    maximizable: true,
    maximized: true,
    modal: true,
    layout: {
        align: 'stretch',
        type: 'hbox'
    },
    
    initComponent: function() {
        var me = this;
        Ext.applyIf(me, {
            items: [
            {
                xtype: 'panel',
                layout: {
                    align: 'stretch',
                    type: 'hbox'
                },
                border: 0,
                flex: 1,                    
                dockedItems: [
                {
//                    xtype: 'organizationstructuretoolbar',
//                    dock: 'top'
                }],
                items: [
                {
                    xtype: 'adminstructuretreepanel',
                    flex: 1
                },
                {
                    xtype: 'adminstrucutrepanelgrid',
                    flex: 3
                }
                ]
            }
            ]
        });
        me.callParent(arguments);
    }

});